package com.navi.loaddata.core.oracleEntity.array;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by ghost on 2018/3/16.
 */
@Entity
@Table(name = "ETL_ARRAY_CHIP_V", schema = "EDALDR", catalog = "")
@IdClass(EtlArrayChipVPK.class)
public class EtlArrayChipV {
    private String stepId;
    private String glassId;
    private Date glassEndTime;
    private String chipId;
    private String chipNo;
    private String panelJudge;
    private String mainDefectCode;
    private String panelGrade;
    private Long chipTotalDftCount;
    private Long chipTotalImageCount;
    private Long chipTotalReprDftQty;
    private Long chipLcvdReprDftQty;
    private Long chipBackSideDftQty;
    private Long chipTestKetDftQty;
    private Long chipAftStkDftQty;
    private Long chipInkReprDftQty;
    private Long chipPnlCapDftQty;
    private Long chipTapReprDftQty;
    private Long chipLsrReprDftQty;
    private Long chipODftQty;
    private Long chipLDftQty;
    private Long chipMDftQty;
    private Long chipSDftQty;
    private Long chipBrightDftQty;
    private Long chipWriteDftQty;
    private Long chipGrayDftQty;
    private Long chipBlackDftQty;
    private Long ngPointDefNo;
    private Long ngShortDefNo;
    private Long ngOpenDefNo;
    private Long panelResetCnt;
    private Long panelDefGCnt;
    private Long panelDefNCnt;
    private Long panelDefUnjdgCnt;
    private String panelVolChargeMeanP;
    private String panelVolChargeStddevP;
    private String panelVolMeanN;
    private String panelVolSddevN;

    @Id
    @Column(name = "STEP_ID")
    public String getStepId() {
        return stepId;
    }

    public void setStepId(String stepId) {
        this.stepId = stepId;
    }

    @Id
    @Column(name = "GLASS_ID")
    public String getGlassId() {
        return glassId;
    }

    public void setGlassId(String glassId) {
        this.glassId = glassId;
    }

    @Id
    @Column(name = "GLASS_END_TIME")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getGlassEndTime() {
        return glassEndTime;
    }

    public void setGlassEndTime(Date glassEndTime) {
        this.glassEndTime = glassEndTime;
    }

    @Basic
    @Column(name = "CHIP_ID")
    public String getChipId() {
        return chipId;
    }

    public void setChipId(String chipId) {
        this.chipId = chipId;
    }

    @Id
    @Column(name = "CHIP_NO")
    public String getChipNo() {
        return chipNo;
    }

    public void setChipNo(String chipNo) {
        this.chipNo = chipNo;
    }

    @Basic
    @Column(name = "PANEL_JUDGE")
    public String getPanelJudge() {
        return panelJudge;
    }

    public void setPanelJudge(String panelJudge) {
        this.panelJudge = panelJudge;
    }

    @Basic
    @Column(name = "MAIN_DEFECT_CODE")
    public String getMainDefectCode() {
        return mainDefectCode;
    }

    public void setMainDefectCode(String mainDefectCode) {
        this.mainDefectCode = mainDefectCode;
    }

    @Basic
    @Column(name = "PANEL_GRADE")
    public String getPanelGrade() {
        return panelGrade;
    }

    public void setPanelGrade(String panelGrade) {
        this.panelGrade = panelGrade;
    }

    @Basic
    @Column(name = "CHIP_TOTAL_DFT_COUNT")
    public Long getChipTotalDftCount() {
        return chipTotalDftCount;
    }

    public void setChipTotalDftCount(Long chipTotalDftCount) {
        this.chipTotalDftCount = chipTotalDftCount;
    }

    @Basic
    @Column(name = "CHIP_TOTAL_IMAGE_COUNT")
    public Long getChipTotalImageCount() {
        return chipTotalImageCount;
    }

    public void setChipTotalImageCount(Long chipTotalImageCount) {
        this.chipTotalImageCount = chipTotalImageCount;
    }

    @Basic
    @Column(name = "CHIP_TOTAL_REPR_DFT_QTY")
    public Long getChipTotalReprDftQty() {
        return chipTotalReprDftQty;
    }

    public void setChipTotalReprDftQty(Long chipTotalReprDftQty) {
        this.chipTotalReprDftQty = chipTotalReprDftQty;
    }

    @Basic
    @Column(name = "CHIP_LCVD_REPR_DFT_QTY")
    public Long getChipLcvdReprDftQty() {
        return chipLcvdReprDftQty;
    }

    public void setChipLcvdReprDftQty(Long chipLcvdReprDftQty) {
        this.chipLcvdReprDftQty = chipLcvdReprDftQty;
    }

    @Basic
    @Column(name = "CHIP_BACK_SIDE_DFT_QTY")
    public Long getChipBackSideDftQty() {
        return chipBackSideDftQty;
    }

    public void setChipBackSideDftQty(Long chipBackSideDftQty) {
        this.chipBackSideDftQty = chipBackSideDftQty;
    }

    @Basic
    @Column(name = "CHIP_TEST_KET_DFT_QTY")
    public Long getChipTestKetDftQty() {
        return chipTestKetDftQty;
    }

    public void setChipTestKetDftQty(Long chipTestKetDftQty) {
        this.chipTestKetDftQty = chipTestKetDftQty;
    }

    @Basic
    @Column(name = "CHIP_AFT_STK_DFT_QTY")
    public Long getChipAftStkDftQty() {
        return chipAftStkDftQty;
    }

    public void setChipAftStkDftQty(Long chipAftStkDftQty) {
        this.chipAftStkDftQty = chipAftStkDftQty;
    }

    @Basic
    @Column(name = "CHIP_INK_REPR_DFT_QTY")
    public Long getChipInkReprDftQty() {
        return chipInkReprDftQty;
    }

    public void setChipInkReprDftQty(Long chipInkReprDftQty) {
        this.chipInkReprDftQty = chipInkReprDftQty;
    }

    @Basic
    @Column(name = "CHIP_PNL_CAP_DFT_QTY")
    public Long getChipPnlCapDftQty() {
        return chipPnlCapDftQty;
    }

    public void setChipPnlCapDftQty(Long chipPnlCapDftQty) {
        this.chipPnlCapDftQty = chipPnlCapDftQty;
    }

    @Basic
    @Column(name = "CHIP_TAP_REPR_DFT_QTY")
    public Long getChipTapReprDftQty() {
        return chipTapReprDftQty;
    }

    public void setChipTapReprDftQty(Long chipTapReprDftQty) {
        this.chipTapReprDftQty = chipTapReprDftQty;
    }

    @Basic
    @Column(name = "CHIP_LSR_REPR_DFT_QTY")
    public Long getChipLsrReprDftQty() {
        return chipLsrReprDftQty;
    }

    public void setChipLsrReprDftQty(Long chipLsrReprDftQty) {
        this.chipLsrReprDftQty = chipLsrReprDftQty;
    }

    @Basic
    @Column(name = "CHIP_O_DFT_QTY")
    public Long getChipODftQty() {
        return chipODftQty;
    }

    public void setChipODftQty(Long chipODftQty) {
        this.chipODftQty = chipODftQty;
    }

    @Basic
    @Column(name = "CHIP_L_DFT_QTY")
    public Long getChipLDftQty() {
        return chipLDftQty;
    }

    public void setChipLDftQty(Long chipLDftQty) {
        this.chipLDftQty = chipLDftQty;
    }

    @Basic
    @Column(name = "CHIP_M_DFT_QTY")
    public Long getChipMDftQty() {
        return chipMDftQty;
    }

    public void setChipMDftQty(Long chipMDftQty) {
        this.chipMDftQty = chipMDftQty;
    }

    @Basic
    @Column(name = "CHIP_S_DFT_QTY")
    public Long getChipSDftQty() {
        return chipSDftQty;
    }

    public void setChipSDftQty(Long chipSDftQty) {
        this.chipSDftQty = chipSDftQty;
    }

    @Basic
    @Column(name = "CHIP_BRIGHT_DFT_QTY")
    public Long getChipBrightDftQty() {
        return chipBrightDftQty;
    }

    public void setChipBrightDftQty(Long chipBrightDftQty) {
        this.chipBrightDftQty = chipBrightDftQty;
    }

    @Basic
    @Column(name = "CHIP_WRITE_DFT_QTY")
    public Long getChipWriteDftQty() {
        return chipWriteDftQty;
    }

    public void setChipWriteDftQty(Long chipWriteDftQty) {
        this.chipWriteDftQty = chipWriteDftQty;
    }

    @Basic
    @Column(name = "CHIP_GRAY_DFT_QTY")
    public Long getChipGrayDftQty() {
        return chipGrayDftQty;
    }

    public void setChipGrayDftQty(Long chipGrayDftQty) {
        this.chipGrayDftQty = chipGrayDftQty;
    }

    @Basic
    @Column(name = "CHIP_BLACK_DFT_QTY")
    public Long getChipBlackDftQty() {
        return chipBlackDftQty;
    }

    public void setChipBlackDftQty(Long chipBlackDftQty) {
        this.chipBlackDftQty = chipBlackDftQty;
    }

    @Basic
    @Column(name = "NG_POINT_DEF_NO")
    public Long getNgPointDefNo() {
        return ngPointDefNo;
    }

    public void setNgPointDefNo(Long ngPointDefNo) {
        this.ngPointDefNo = ngPointDefNo;
    }

    @Basic
    @Column(name = "NG_SHORT_DEF_NO")
    public Long getNgShortDefNo() {
        return ngShortDefNo;
    }

    public void setNgShortDefNo(Long ngShortDefNo) {
        this.ngShortDefNo = ngShortDefNo;
    }

    @Basic
    @Column(name = "NG_OPEN_DEF_NO")
    public Long getNgOpenDefNo() {
        return ngOpenDefNo;
    }

    public void setNgOpenDefNo(Long ngOpenDefNo) {
        this.ngOpenDefNo = ngOpenDefNo;
    }

    @Basic
    @Column(name = "PANEL_RESET_CNT")
    public Long getPanelResetCnt() {
        return panelResetCnt;
    }

    public void setPanelResetCnt(Long panelResetCnt) {
        this.panelResetCnt = panelResetCnt;
    }

    @Basic
    @Column(name = "PANEL_DEF_G_CNT")
    public Long getPanelDefGCnt() {
        return panelDefGCnt;
    }

    public void setPanelDefGCnt(Long panelDefGCnt) {
        this.panelDefGCnt = panelDefGCnt;
    }

    @Basic
    @Column(name = "PANEL_DEF_N_CNT")
    public Long getPanelDefNCnt() {
        return panelDefNCnt;
    }

    public void setPanelDefNCnt(Long panelDefNCnt) {
        this.panelDefNCnt = panelDefNCnt;
    }

    @Basic
    @Column(name = "PANEL_DEF_UNJDG_CNT")
    public Long getPanelDefUnjdgCnt() {
        return panelDefUnjdgCnt;
    }

    public void setPanelDefUnjdgCnt(Long panelDefUnjdgCnt) {
        this.panelDefUnjdgCnt = panelDefUnjdgCnt;
    }

    @Basic
    @Column(name = "PANEL_VOL_CHARGE_MEAN_P")
    public String getPanelVolChargeMeanP() {
        return panelVolChargeMeanP;
    }

    public void setPanelVolChargeMeanP(String panelVolChargeMeanP) {
        this.panelVolChargeMeanP = panelVolChargeMeanP;
    }

    @Basic
    @Column(name = "PANEL_VOL_CHARGE_STDDEV_P")
    public String getPanelVolChargeStddevP() {
        return panelVolChargeStddevP;
    }

    public void setPanelVolChargeStddevP(String panelVolChargeStddevP) {
        this.panelVolChargeStddevP = panelVolChargeStddevP;
    }

    @Basic
    @Column(name = "PANEL_VOL_MEAN_N")
    public String getPanelVolMeanN() {
        return panelVolMeanN;
    }

    public void setPanelVolMeanN(String panelVolMeanN) {
        this.panelVolMeanN = panelVolMeanN;
    }

    @Basic
    @Column(name = "PANEL_VOL_SDDEV_N")
    public String getPanelVolSddevN() {
        return panelVolSddevN;
    }

    public void setPanelVolSddevN(String panelVolSddevN) {
        this.panelVolSddevN = panelVolSddevN;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        EtlArrayChipV that = (EtlArrayChipV) o;

        if (stepId != null ? !stepId.equals(that.stepId) : that.stepId != null) return false;
        if (glassId != null ? !glassId.equals(that.glassId) : that.glassId != null) return false;
        if (glassEndTime != null ? !glassEndTime.equals(that.glassEndTime) : that.glassEndTime != null) return false;
        if (chipId != null ? !chipId.equals(that.chipId) : that.chipId != null) return false;
        if (chipNo != null ? !chipNo.equals(that.chipNo) : that.chipNo != null) return false;
        if (panelJudge != null ? !panelJudge.equals(that.panelJudge) : that.panelJudge != null) return false;
        if (mainDefectCode != null ? !mainDefectCode.equals(that.mainDefectCode) : that.mainDefectCode != null)
            return false;
        if (panelGrade != null ? !panelGrade.equals(that.panelGrade) : that.panelGrade != null) return false;
        if (chipTotalDftCount != null ? !chipTotalDftCount.equals(that.chipTotalDftCount) : that.chipTotalDftCount != null)
            return false;
        if (chipTotalImageCount != null ? !chipTotalImageCount.equals(that.chipTotalImageCount) : that.chipTotalImageCount != null)
            return false;
        if (chipTotalReprDftQty != null ? !chipTotalReprDftQty.equals(that.chipTotalReprDftQty) : that.chipTotalReprDftQty != null)
            return false;
        if (chipLcvdReprDftQty != null ? !chipLcvdReprDftQty.equals(that.chipLcvdReprDftQty) : that.chipLcvdReprDftQty != null)
            return false;
        if (chipBackSideDftQty != null ? !chipBackSideDftQty.equals(that.chipBackSideDftQty) : that.chipBackSideDftQty != null)
            return false;
        if (chipTestKetDftQty != null ? !chipTestKetDftQty.equals(that.chipTestKetDftQty) : that.chipTestKetDftQty != null)
            return false;
        if (chipAftStkDftQty != null ? !chipAftStkDftQty.equals(that.chipAftStkDftQty) : that.chipAftStkDftQty != null)
            return false;
        if (chipInkReprDftQty != null ? !chipInkReprDftQty.equals(that.chipInkReprDftQty) : that.chipInkReprDftQty != null)
            return false;
        if (chipPnlCapDftQty != null ? !chipPnlCapDftQty.equals(that.chipPnlCapDftQty) : that.chipPnlCapDftQty != null)
            return false;
        if (chipTapReprDftQty != null ? !chipTapReprDftQty.equals(that.chipTapReprDftQty) : that.chipTapReprDftQty != null)
            return false;
        if (chipLsrReprDftQty != null ? !chipLsrReprDftQty.equals(that.chipLsrReprDftQty) : that.chipLsrReprDftQty != null)
            return false;
        if (chipODftQty != null ? !chipODftQty.equals(that.chipODftQty) : that.chipODftQty != null) return false;
        if (chipLDftQty != null ? !chipLDftQty.equals(that.chipLDftQty) : that.chipLDftQty != null) return false;
        if (chipMDftQty != null ? !chipMDftQty.equals(that.chipMDftQty) : that.chipMDftQty != null) return false;
        if (chipSDftQty != null ? !chipSDftQty.equals(that.chipSDftQty) : that.chipSDftQty != null) return false;
        if (chipBrightDftQty != null ? !chipBrightDftQty.equals(that.chipBrightDftQty) : that.chipBrightDftQty != null)
            return false;
        if (chipWriteDftQty != null ? !chipWriteDftQty.equals(that.chipWriteDftQty) : that.chipWriteDftQty != null)
            return false;
        if (chipGrayDftQty != null ? !chipGrayDftQty.equals(that.chipGrayDftQty) : that.chipGrayDftQty != null)
            return false;
        if (chipBlackDftQty != null ? !chipBlackDftQty.equals(that.chipBlackDftQty) : that.chipBlackDftQty != null)
            return false;
        if (ngPointDefNo != null ? !ngPointDefNo.equals(that.ngPointDefNo) : that.ngPointDefNo != null) return false;
        if (ngShortDefNo != null ? !ngShortDefNo.equals(that.ngShortDefNo) : that.ngShortDefNo != null) return false;
        if (ngOpenDefNo != null ? !ngOpenDefNo.equals(that.ngOpenDefNo) : that.ngOpenDefNo != null) return false;
        if (panelResetCnt != null ? !panelResetCnt.equals(that.panelResetCnt) : that.panelResetCnt != null)
            return false;
        if (panelDefGCnt != null ? !panelDefGCnt.equals(that.panelDefGCnt) : that.panelDefGCnt != null) return false;
        if (panelDefNCnt != null ? !panelDefNCnt.equals(that.panelDefNCnt) : that.panelDefNCnt != null) return false;
        if (panelDefUnjdgCnt != null ? !panelDefUnjdgCnt.equals(that.panelDefUnjdgCnt) : that.panelDefUnjdgCnt != null)
            return false;
        if (panelVolChargeMeanP != null ? !panelVolChargeMeanP.equals(that.panelVolChargeMeanP) : that.panelVolChargeMeanP != null)
            return false;
        if (panelVolChargeStddevP != null ? !panelVolChargeStddevP.equals(that.panelVolChargeStddevP) : that.panelVolChargeStddevP != null)
            return false;
        if (panelVolMeanN != null ? !panelVolMeanN.equals(that.panelVolMeanN) : that.panelVolMeanN != null)
            return false;
        if (panelVolSddevN != null ? !panelVolSddevN.equals(that.panelVolSddevN) : that.panelVolSddevN != null)
            return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = stepId != null ? stepId.hashCode() : 0;
        result = 31 * result + (glassId != null ? glassId.hashCode() : 0);
        result = 31 * result + (glassEndTime != null ? glassEndTime.hashCode() : 0);
        result = 31 * result + (chipId != null ? chipId.hashCode() : 0);
        result = 31 * result + (chipNo != null ? chipNo.hashCode() : 0);
        result = 31 * result + (panelJudge != null ? panelJudge.hashCode() : 0);
        result = 31 * result + (mainDefectCode != null ? mainDefectCode.hashCode() : 0);
        result = 31 * result + (panelGrade != null ? panelGrade.hashCode() : 0);
        result = 31 * result + (chipTotalDftCount != null ? chipTotalDftCount.hashCode() : 0);
        result = 31 * result + (chipTotalImageCount != null ? chipTotalImageCount.hashCode() : 0);
        result = 31 * result + (chipTotalReprDftQty != null ? chipTotalReprDftQty.hashCode() : 0);
        result = 31 * result + (chipLcvdReprDftQty != null ? chipLcvdReprDftQty.hashCode() : 0);
        result = 31 * result + (chipBackSideDftQty != null ? chipBackSideDftQty.hashCode() : 0);
        result = 31 * result + (chipTestKetDftQty != null ? chipTestKetDftQty.hashCode() : 0);
        result = 31 * result + (chipAftStkDftQty != null ? chipAftStkDftQty.hashCode() : 0);
        result = 31 * result + (chipInkReprDftQty != null ? chipInkReprDftQty.hashCode() : 0);
        result = 31 * result + (chipPnlCapDftQty != null ? chipPnlCapDftQty.hashCode() : 0);
        result = 31 * result + (chipTapReprDftQty != null ? chipTapReprDftQty.hashCode() : 0);
        result = 31 * result + (chipLsrReprDftQty != null ? chipLsrReprDftQty.hashCode() : 0);
        result = 31 * result + (chipODftQty != null ? chipODftQty.hashCode() : 0);
        result = 31 * result + (chipLDftQty != null ? chipLDftQty.hashCode() : 0);
        result = 31 * result + (chipMDftQty != null ? chipMDftQty.hashCode() : 0);
        result = 31 * result + (chipSDftQty != null ? chipSDftQty.hashCode() : 0);
        result = 31 * result + (chipBrightDftQty != null ? chipBrightDftQty.hashCode() : 0);
        result = 31 * result + (chipWriteDftQty != null ? chipWriteDftQty.hashCode() : 0);
        result = 31 * result + (chipGrayDftQty != null ? chipGrayDftQty.hashCode() : 0);
        result = 31 * result + (chipBlackDftQty != null ? chipBlackDftQty.hashCode() : 0);
        result = 31 * result + (ngPointDefNo != null ? ngPointDefNo.hashCode() : 0);
        result = 31 * result + (ngShortDefNo != null ? ngShortDefNo.hashCode() : 0);
        result = 31 * result + (ngOpenDefNo != null ? ngOpenDefNo.hashCode() : 0);
        result = 31 * result + (panelResetCnt != null ? panelResetCnt.hashCode() : 0);
        result = 31 * result + (panelDefGCnt != null ? panelDefGCnt.hashCode() : 0);
        result = 31 * result + (panelDefNCnt != null ? panelDefNCnt.hashCode() : 0);
        result = 31 * result + (panelDefUnjdgCnt != null ? panelDefUnjdgCnt.hashCode() : 0);
        result = 31 * result + (panelVolChargeMeanP != null ? panelVolChargeMeanP.hashCode() : 0);
        result = 31 * result + (panelVolChargeStddevP != null ? panelVolChargeStddevP.hashCode() : 0);
        result = 31 * result + (panelVolMeanN != null ? panelVolMeanN.hashCode() : 0);
        result = 31 * result + (panelVolSddevN != null ? panelVolSddevN.hashCode() : 0);
        return result;
    }
}
